/*
 * Holds keword with extra info
 */

package application.model;

import java.io.Serializable;

/**
 *
 * @author aa6345
 */
public final class EntityAccomplishmentReport implements Serializable{
    //private String gKeyword;
    private String accompTitle;
    private String accomplishmentType;
    private Double accomplishmentWeight;
    private Long accompID;

    public Long getAccompID() {
        return accompID;
    }

    public void setAccompID(Long accompID) {
        this.accompID = accompID;
    }

    public Double getAccomplishmentWeight() {
        return accomplishmentWeight;
    }

    public void setAccomplishmentWeight(Double accomplishmentWeight) {
        this.accomplishmentWeight = accomplishmentWeight;
    }

    //public EntityAccomplishmentReport(String lKeyword, String lItem, String laccomplishmentType) throws Exception {
    public EntityAccomplishmentReport(String lItem, String laccomplishmentType, Long lAccompID, Double lWeight) throws Exception {
        if(lItem.isEmpty() || laccomplishmentType.isEmpty() || lAccompID==null) {
          throw new Exception(lItem+laccomplishmentType);
        } else {
            //this.setKeyword(lKeyword);
            this.setAccompTitle(lItem);
            this.setAccomplishmentType(laccomplishmentType);
            this.setAccomplishmentWeight(lWeight);
            this.setAccompID(lAccompID);
        }
    }

    public EntityAccomplishmentReport() {
        //this.setKeyword("");
        this.setAccompTitle("");
        this.setAccomplishmentType("");
        this.setAccomplishmentWeight(0.00);
        this.setAccompID(null);
    }

    public String getAccomplishmentType() {
        return accomplishmentType;
    }

    public void setAccomplishmentType(String laccomplishmentType) {
        this.accomplishmentType = laccomplishmentType;
    }

    public String getAccompTitle() {
        return accompTitle;
    }

    public void setAccompTitle(String item) {
        this.accompTitle = item;
    }

    /*
    public String getKeyword() {
        return gKeyword;
    }

    public void setKeyword(String keyword) {
        this.gKeyword = keyword;
    }
    */
}
